package com.wze.wze.Service;

import com.wze.wze.Entity.PingLun;
import com.wze.wze.Impl.PingLunImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PingLunService implements PingLunImpl {
    @Resource
    PingLunImpl pinglun;

    @Override
    public PingLun getPingLunByid(int uid,int mid) {
        return pinglun.getPingLunByid(uid,mid);
    }


    @Override
    public int addPingLun(int uid, String UName, String Info, int mid) {
        return pinglun.addPingLun(uid, UName, Info, mid);
    }

    @Override
    public int upPingLun(String Info, int id) {
        return pinglun.upPingLun(Info,id);
    }

    @Override
    public int delPingLunByuId(int uid, int mid) {
        return pinglun.delPingLunByuId(uid, mid);
    }

    @Override
    public int delPingLunById(int id) {
        return pinglun.delPingLunById(id);
    }

    @Override
    public List<PingLun> getPingLunList(int Start, int Page, int uid,int mid ) {
        return pinglun.getPingLunList(Start, Page, uid, mid);
    }

}
